package com.beiye.drivertransport.utils;

import com.beiye.drivertransport.bean.LoginUserBean;

/**
 * Created by ky on 2018/3/10.
 */
//eventbus处理事件
public class MessageEvent {
    public static final int TYPE_1 = 1;//首页专项失败
    public static final int TYPE_2 = 2;//全部专题专项失败
    public static final int TYPE_3 = 3;//考试专项失败
    public static final int TYPE_12 = 12;//首页专项成功
    public static final int TYPE_13 = 13;//全部专题专项成功
    public static final int TYPE_14 = 14;//考试专项成功
    public static final int TYPE_4 = 4;//账户余额购买成功
    public static final int TYPE_5 = 5;//岗前培训购买成功
    public static final int TYPE_6 = 6;//账户余额购买失败
    public static final int TYPE_7 = 7;//岗前培训购买失败
    public static final int TYPE_8 = 8;//专项培训页购买失败
    public static final int TYPE_9 = 9;//专项培训页购买成功
    public static final int TYPE_10 = 10;//违章培训页购买失败
    public static final int TYPE_11 = 11;//违章培训页购买成功
    public static final int TYPE_15 = 15;//继续教育反回code
    public static final int TYPE_16 = 16;//专项购买次数成功
    public static final int TYPE_17 = 17;//专项购买次数失败
    public static final int TYPE_18 = 18;//触发行车日志驾驶员签名个数最新数据
    public static final int TYPE_19 = 19;//日常培训购买成功
    public static final int TYPE_20 = 20;//日常培训购买失败
    public static final int TYPE_21 = 21;//日常培训购买成功
    public static final int TYPE_22 = 22;//日常培训购买失败


    private int type;

    public MessageEvent(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    private String msg;
    private String message;
    private String messageurl;
    private boolean isphoto;
    private int code;
    private int faceRecgMark;
    private int omuSn;//会议用户序列号

    public int getOmuSn() {
        return omuSn;
    }

    public String getMsg() {
        return msg;
    }

    public MessageEvent(String message) {
        this.message = message;
    }

    public String getMessage() {
        return message;
    }

    public String getMessageurl() {
        return messageurl;
    }

    public int getFaceRecgMark() {
        return faceRecgMark;
    }

    public int getCode() {
        return code;
    }

    public boolean isIsphoto() {
        return isphoto;
    }

    public MessageEvent(boolean isphoto, String message, String messageurl) {
        this.isphoto = isphoto;
        this.message = message;
        this.messageurl = messageurl;


    }

    public MessageEvent(boolean isphoto, String message, String messageurl, int code, int faceRecgMark) {
        this.isphoto = isphoto;
        this.message = message;
        this.messageurl = messageurl;
        this.code = code;
        this.faceRecgMark = faceRecgMark;

    }

    //日常培训人脸识别
    public MessageEvent(boolean isphoto, String message, String messageurl, int code, int faceRecgMark, String msg) {
        this.isphoto = isphoto;
        this.message = message;
        this.messageurl = messageurl;
        this.code = code;
        this.faceRecgMark = faceRecgMark;
        this.msg = msg;
    }

    //日常培训人脸识别
    public MessageEvent(boolean isphoto, String message,int omuSn, String messageurl, int code, int faceRecgMark, String msg) {
        this.isphoto = isphoto;
        this.message = message;
        this.omuSn=omuSn;
        this.messageurl = messageurl;
        this.code = code;
        this.faceRecgMark = faceRecgMark;
        this.msg = msg;
    }

    //考试人脸识别
    public MessageEvent(boolean isphoto, String messageurl, int code, int faceRecgMark, String msg) {
        this.isphoto = isphoto;
        this.messageurl = messageurl;
        this.code = code;
        this.faceRecgMark = faceRecgMark;
        this.msg = msg;
    }

    private LoginUserBean userInfo;

    public MessageEvent(LoginUserBean userInfo) {
        this.userInfo = userInfo;
    }

    public LoginUserBean getUserInfo() {
        return userInfo;
    }


}

